package com.liuliang.http;

/**
 * 枚举状态类
 */
public enum EnumStatus {
    SUCCESS(200, "请求成功");
    //状态码
    private int status;
    //状态描述
    private String message;

    EnumStatus(int status, String message) {
        this.status = status;
        this.message = message;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "EnumStatus{" +
                "status=" + status +
                ", message='" + message + '\'' +
                '}';
    }
}